import request from '@/utils/request'

// 查询供应商询价单列表
export function listScmInquiriesOut(query) {
  return request({
    url: '/scm/scmInquiriesOut/list',
    method: 'get',
    params: query
  })
}

// 查询供应商询价单详细
export function getScmInquiriesOut(id) {
  return request({
    url: '/scm/scmInquiriesOut/' + id,
    method: 'get'
  })
}

// 新增供应商询价单
export function addScmInquiriesOut(data) {
  return request({
    url: '/scm/scmInquiriesOut',
    method: 'post',
    data: data
  })
}

export function createScmInquiriesOut(data) {
  console.log("receved:" + data);
  return request({
    url: '/scm/scmInquiriesOut/fromIn',
    method: 'post',
    data: data
  })
}

// 修改供应商询价单
export function updateScmInquiriesOut(data) {
  return request({
    url: '/scm/scmInquiriesOut',
    method: 'put',
    data: data
  })
}

// 删除供应商询价单
export function delScmInquiriesOut(id) {
  return request({
    url: '/scm/scmInquiriesOut/' + id,
    method: 'delete'
  })
}
